home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / C⁄C++ OS8 / LayerGroups / DDocData.h < prev    next >
Encoding:
Text File  |  1998-10-23  |  2.0 KB  |  86 lines  |  [TEXT/CWIE]

  1. // DDocData -- data class for LayerGroups
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7.  
  8. const long    idTabs        = 'Tabs';
  9. const long    idEditText        = 'Edit';
  10. const long    idScrollBar        = 'Scrr';
  11. const long    idListChoice0        = 'Lis0';
  12. const long    idOptionOne        = 'Opte';
  13. const long    idOptionTwo        = 'Opto';
  14. const long    idEditText2        = 'Edi2';
  15. const long    idInfinity2        = 'Inf2';
  16. const long    idProgressBar        = 'Pror';
  17. const long    idEditText3        = 'Edi3';
  18. const long    idPopupChoice        = 'Pope';
  19. const long    idListChoice1        = 'Lis1';
  20.  
  21. class AMEngine;
  22.  
  23. //----------
  24. class DDocData : public AMSignaler {
  25. public:
  26.                 DDocData ();
  27.     virtual        ~DDocData ();
  28.  
  29. public:
  30.     void        CopyFrom        (const DDocData&        inOther);
  31.     void        ReadFromFile    (AMEngine*        engine);
  32.     void        WriteToFile        (AMEngine*        engine);
  33.  
  34. public:
  35.     UInt16        GetTabs () const;
  36.     void        SetTabs    (UInt16        inValue);
  37.  
  38.     LongDateRec        GetEditText () const;
  39.     void        SetEditText    (LongDateRec        inValue);
  40.  
  41.     SInt16        GetScrollBar () const;
  42.     void        SetScrollBar    (SInt16        inValue);
  43.  
  44.     SInt16        GetListChoice0 () const;
  45.     void        SetListChoice0    (SInt16        inValue);
  46.  
  47.     Boolean        GetOptionOne () const;
  48.     void        SetOptionOne    (Boolean        inValue);
  49.  
  50.     SInt16        GetOptionTwo () const;
  51.     void        SetOptionTwo    (SInt16        inValue);
  52.  
  53.     StringPtr    GetEditText2    (Str255        outStr = nil) const;
  54.     void        SetEditText2    (Str255        inValue);
  55.     void        SetEditText2    (CharsHandle    inValue);
  56.  
  57.     SInt16        GetInfinity2 () const;
  58.     void        SetInfinity2    (SInt16        inValue);
  59.  
  60.     SInt16        GetProgressBar () const;
  61.     void        SetProgressBar    (SInt16        inValue);
  62.  
  63.     StringPtr    GetEditText3    (Str255        outStr = nil) const;
  64.     void        SetEditText3    (Str255        inValue);
  65.     void        SetEditText3    (CharsHandle    inValue);
  66.  
  67.     SInt32        GetPopupChoice () const;
  68.     void        SetPopupChoice    (SInt32        inValue);
  69.  
  70.     SInt16        GetListChoice1 () const;
  71.     void        SetListChoice1    (SInt16        inValue);
  72.  
  73. protected:
  74.     UInt16        mTabs;
  75.     LongDateRec        mEditText;
  76.     SInt16        mScrollBar;
  77.     SInt16        mListChoice0;
  78.     Boolean        mOptionOne;
  79.     SInt16        mOptionTwo;
  80.     Str255        mEditText2;
  81.     SInt16        mInfinity2;
  82.     SInt16        mProgressBar;
  83.     Str255        mEditText3;
  84.     SInt32        mPopupChoice;
  85. };
  86.